home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPPANS.ZIP / TICKS.CPP < prev    next >
C/C++ Source or Header  |  1991-07-08  |  515b  |  23 lines

  1. // ticks.cpp -- Display system clock ticker
  2.  
  3. #include <iostream.h>
  4. #include <conio.h>
  5. #include <dos.h>
  6.  
  7. main()
  8. {
  9.   unsigned long far *ticks = (unsigned long far *)MK_FP(0x0040, 0x006C);
  10.  
  11.   cout << "System ticker. Press any key to quit.\n";
  12.   while (!kbhit())
  13.     cout << *ticks << char(13);
  14. }
  15.  
  16.  
  17. // Copyright (c) 1990 by Tom Swan. All rights reserved
  18. // Revision 1.00    Date: 12/05/1990   Time: 07:48 am
  19.  
  20. // Revision 1.01    Date: 07/08/1991   Time: 05:41 pm
  21. // Converted for Borland C++ 2.0
  22.  
  23.